package com.lwlk.zdk.controller.Platform;

import com.lwlk.zdk.service.User.SysUserService;
import com.lwlk.zdk.util.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/User")
public class LoginController {


    @Autowired
    SysUserService sysUserService;


    //=========平台登陆,返回token==========
    @RequestMapping(value = "/login",method = RequestMethod.POST)
    public Response getUser(String account,String password){
        Response login=sysUserService.login(account,password);
        return login;
    }





}
